function XForms_select(params){
  XForms_Core.call(this, params);
  var binding = this.getBinding();
  var control = this;
  if(this.$element){
    //this.$element.val(this.getValue());
    control.$element.find("input").each(function(){
      this.checked=false;
    });
    this.$element.find("input").change(function(){
      var val=[];
      control.$element.find("input").each(function(){
        if(this.checked) val.push(this.value);
      });
      //console.log(val);
      control.setValue(val.join(" "));
    });
  }
  this.onRefresh=function(){
    this.$element.val(this.getValue());
  }
}
